# encoding: utf-8
"""
Users module
============
"""
from app.modules.common.utils import JsonEncoder


class VCloud(JsonEncoder):
    def __init__(self, ipaddress, hostname, status = 'unavailable', cpu_cores = 1, memory = 0, memory_free = 0,
                 disk = 0, disk_free = 0, disk_free_list = None, data = None, container_status = 'ready', cpu_free = 0):
        self.ipaddress = ipaddress
        self.hostname = hostname
        self.status = status
        self.cpu_cores = cpu_cores
        self.memory = memory
        self.memory_free = memory_free
        self.disk = disk
        self.disk_free = disk_free
        self.disk_free_list = disk_free_list
        self.data = data
        self.container_status = container_status
        self.cpu_free = cpu_free

# class Result:
#
#     status = None
#     message = None
#     data = None
#
#     def __init__(self, status, message, data=None):
#         self.status = status
#         self.message = message
#         if data is not None:
#             self.data = obj_to_dict(data)
